package com.qf.shopping.service.impl;

import com.qf.shopping.dao.BaseDao;
import com.qf.shopping.dao.IAddressDao;
import com.qf.shopping.dao.impl.AddressDaoImpl;
import com.qf.shopping.entity.Address;
import com.qf.shopping.service.BaseService;
import com.qf.shopping.service.IAddressService;

import java.util.List;

/**
 * @author 三旬
 * @version 1.0  2022/9/23
 */

public class AddressServiceImpl extends BaseServiceImpl<Address> implements IAddressService {
    IAddressDao addressDao = new AddressDaoImpl();
    @Override
    protected BaseDao<Address> getBaseDao() {
        return addressDao;
    }

    @Override
    public List<Address> getMyAddress(Integer uid) {
        return addressDao.getMyAddress(uid);
    }
}
